#include <iostream>

static void prt(unsigned int *in)
{
    std::cout << "in[" << &in << "]: " << in << std::endl;
    unsigned int *pp = in;
    std::cout << "pp[" << &pp << "]: " << pp << std::endl;

    pp = in = NULL;

    std::cout << "pp[" << &pp << "]: " << pp << std::endl;
}

int main()
{
    unsigned int var1 = 10;
    unsigned int *p1 = &var1;

    std::cout << "var1[" << &var1 << "]: " << var1 << std::endl;
    std::cout << "p1[" << &p1 << "]: " << p1 << std::endl;

    prt(p1);

    std::cout << "p1[" << &p1 << "]: " << p1 << std::endl;

    return 0;
}
